//---------------------------------------------------------------------------

#ifndef filtersH
#define filtersH

#include "cbuffer.h"

class filters
  {
  private:
    signed int echotemp16;
    double W, SinW, CosW, Alpha;
    double b0,b1,b2,a0,a1,a2;
    cbuffer16 ybuffer();


  public:

    signed short addecho ( cbuffer16 *buffer,unsigned char mainvol, unsigned char echovol, unsigned int delay );
    void filters::SetCoefficients ( unsigned char type, double samplefreq, double freq3dB, double Q, double dBg);
    signed short filter ( cbuffer16 *xbuffer, cbuffer16 *ybuffer  );
  };




//---------------------------------------------------------------------------
#endif
